﻿package {
	
	import flash.display.*;
	import flash.text.TextField;
	import com.riaidea.tween.GlowTween;
	
	public class LuoLiMain extends Sprite {
		
		[Embed(source='../asstes/Sleek_XP_026.png')]
		private var imgClass1:Class;
		[Embed(source='../asstes/Sleek_XP_064.png')]
		private var imgClass2:Class;
		
		private var obj1:Sprite;
		private var obj2:Sprite;
		
		public function LuoLiMain() {
			
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			obj1 = new Sprite();
			var img1:* = new imgClass1();
			img1.width = img1.height = 150;
			obj1.addChild(img1);
			addChild(obj1);
			obj1.x = 20;
			obj1.y = 40;			
			
			obj2 = new Sprite();
			var img2:* = new imgClass2();
			img2.width = img2.height = 150;
			obj2.addChild(img2);
			addChild(obj2);
			obj2.x = 220;
			obj2.y = 50;
			
			//add glow tween to obj1/obj2
			new GlowTween(obj1, 0xFFFF00);
			new GlowTween(obj2, 0x00FFFF);
			
			var tf:TextField = new TextField();
			tf.textColor = 0xFFFFFF;
			tf.autoSize = "left";
			tf.selectable = false;
			tf.text = "说明：移动鼠标到图片上查看效果！";
			addChild(tf);
			tf.x = 100;
			tf.y = 230;
		}
	}
}